<?php
/**
 * Created by : PhpStorm
 * author: sunqiangqiang
 * Date: 2020/4/22
 * Time: 3:06 下午
 */

namespace backend\models;
use yii\db\ActiveRecord;

class PurchaseOrder  extends ActiveRecord{

    public static function tableName(){
        return '{{%purchase_order}}';
    }

    /**
     * @获取创建人
     */
    public function getCreator(){
        $userInfo = \common\helps\tools::getloginUserInfo();
        if($userInfo){
            $userName = $userInfo->userName;
        }else{
            $userName = '';
        }
        return $userName;
    }
}